package net.guerlab.mall.seller.print.entity.offline;

import java.io.Serializable;

public class GoodsInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String skuNum;

    private String skuName;

    private String price;

    private String quantity;

    private String totlePrice;

    public final String getSkuNum() {
        return skuNum;
    }

    public final void setSkuNum(String skuNum) {
        this.skuNum = skuNum;
    }

    public final String getSkuName() {
        return skuName;
    }

    public final void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public final String getPrice() {
        return price;
    }

    public final void setPrice(String price) {
        this.price = price;
    }

    public final String getQuantity() {
        return quantity;
    }

    public final void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public final String getTotlePrice() {
        return totlePrice;
    }

    public final void setTotlePrice(String totlePrice) {
        this.totlePrice = totlePrice;
    }

    @Override
    public String toString() {
        return "GoodsInfo [skuNum=" + skuNum + ", skuName=" + skuName + ", price=" + price + ", quantity=" + quantity
                + ", totlePrice=" + totlePrice + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((skuNum == null) ? 0 : skuNum.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        GoodsInfo other = (GoodsInfo) obj;
        if (skuNum == null) {
            if (other.skuNum != null) {
                return false;
            }
        } else if (!skuNum.equals(other.skuNum)) {
            return false;
        }
        return true;
    }
}
